<!DOCTYPE html>
<html>

<head>


    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <!--360浏览器优先以webkit内核解析-->


    <title>我的网点拜访任务</title>

    <link rel="shortcut icon" href="__STATIC__/layout/favicon.ico">
    <link href="__STATIC__/layout/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="__STATIC__/layout/css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
    <link href="__STATIC__/layout/css/animate.css" rel="stylesheet">
    <link href="__STATIC__/layout/css/style.css?v=4.1.0" rel="stylesheet">
    <link href="__STATIC__/layout/css/channel.css?v=4.1.0" rel="stylesheet">
    <!-- Sweet Alert -->
    <link href="__STATIC__/layout/css/plugins/sweetalert/sweetalert.css" rel="stylesheet">


    <link rel="stylesheet" href="__STATIC__/layout/css/demo.css" type="text/css">
    <link href="__STATIC__/layout/css/gyq.css" rel="stylesheet">
    <style>

    </style>

</head>

<body class="white-bg" style="padding: 3px;font-size: 13px;overflow-x:auto">
<div class="page-heade clearfix">
    <h2 class="clearfix text-center">
        <a class="col-md-3 title_color H_right H_active" style="font-size: 16px;" href="{:url('mynetbaifang')}">我的网点拜访任务</a>
        <a class="col-md-3 title_color H_right" style="font-size: 16px;color:#333;"
           href="{:url('mynetbaifang1')}">我的网点拜访报告</a>
        <a class="col-md-3 title_color H_right" style="font-size: 16px;color:#333;"
           href="{:url('mynetbaifang2')}">我的已安排的网点拜访线路</a>
        <a class="col-md-3 title_color" style="font-size: 16px;color:#333;" href="{:url('mynetbaifang3')}">我的网点拜访线路管理</a>
    </h2>
</div>
<form action="" class="form-inline" id="form1">
    <table class="table table-bordered bud_hei">
        <tr>
            <td class="text-right">日期：</td>
            <td>
                <div class="form-group">
                    <input type="text" id="start" class="form-control layer-date "
                           style="min-width:120px;width:120px;display: inline-block;" name="start" value="{$start}">
                </div>
                <div class="form-group">
                    至
                </div>
                <div class="form-group">
                    <input type="text" class="form-control layer-date"
                           style="min-width:120px;width:120px;display: inline-block;" id="end" name="end" value="{$end}">
                </div>
            </td>
            <td class="text-right">网点名称：</td>
            <td><input type="text" name="wdmc" value="{$wdmc}" class="form-control"></td>
            <td class="text-right">拜访线路：</td>
            <td><input type="text" name="bfxl" value="{$bfxl}" class="form-control"></td>
        </tr>
        <tr>
            <td class="text-right">状态</td>
            <td class="text-left">
                <select name="zt" id="" class="form-control select">
                    <option value="0">请选择</option>
                    <option value="1" {if $zt==1}selected{/if}>已拜访</option>
                    <option value="2" {if $zt==2}selected{/if}>未拜访</option>
                </select>
            </td>
        </tr>
        <tr>
            <td colspan="6" class="text-center">
                <button class="btn-sm btn-info btn">查询</button>
                <span class="lr_5"></span>
                <button class="btn-sm btn-info btn" type="reset" id="reset">清空</button>
                <button class="btn btn-sm btn-info" type="button">导出Excel</button>
            </td>
        </tr>
        <tr>
            <td colspan="6"><a class="btn btn-sm btn-primary "
                               href="{:url('xiafanettask')}">下发网点拜访任务</a><span class="lr_5"></span><a
                    href="{:url('Other/lendbftask')}" class="btn btn-sm btn-primary J_menuItem">拜访任务导入</a></td>
        </tr>
    </table>
</form>
<table class="table table-striped table-bordered table-hover bud_hei text-center" style="width: 100%;">
    <tr class="info">
        <td>N0.</td>
        <td>日期</td>
        <td>网点名称</td>
        <td>拜访线路</td>
        <td>类型</td>
        <td>状态</td>
        <td>到店时间</td>
        <td>签到地点</td>
        <td>距离偏差</td>
        <td>签到图片</td>
        <td>离店时间</td>
        <td>用时</td>
        <td>任务制定人</td>
        <td>制定时间</td>
        <td>操作</td>
    </tr>
    {volist name="data" id="row" key="k"}
    <tr>
        <td>{$k+((request()->get('page')?request()->get('page'):1)-1)*10}</td>
        <td>{$row.rq}</td>
        <td>{$row.wdmc}</td>
        <td>{$row.bfxl}</td>
        <td>{$row.lx}</td>
        <td>{$row.zt}</td>
        <td>{$row.ddsj}</td>
        <td>{$row.qddd}</td>
        <td>{$row.jlpc}</td>
        <td>{$row.qdtp}</td>
        <td>{$row.ldsj}</td>
        <td>{$row.ys}</td>
        <td>{$row.rwdzr_name}</td>
        <td>{$row.dzsj}</td>
        <td><a
                href="{:url('qiandaodetail',['id'=>$row.id])}" class="J_menuItem">查看报告</a></td>
    </tr>
    {/volist}
</table>
<h5 class="text-center"  style="font-size: 13px;font-weight: 500">
     <!--总共有12条记录，第1/2页,当前页<input id="page" type="text"  style="width: 40px" value="1"/><span id="gopage">Go</span>&nbsp;&nbsp;<span id="fistpage">首页</span>&nbsp;&nbsp;
     每页显示
     <select id="pagesize">
         <option value='10' selected>10条</option>
         <option value='15'>15条</option>
         <option value='20'>20条</option>

     </select>-->
    {$page}
 </h5>
<!--    <h3 class="text-center"><img src="__STATIC__/layout/img/zwsj.png"></h3> -->

<!-- 全局js -->
<script src="__STATIC__/layout/js/jquery.min.js"></script>
<script src="__STATIC__/layout/js/contabs_sub.js"></script>
<script src="__STATIC__/layout/js/bootstrap.min.js?v=3.3.6"></script>
<!-- Sweet alert -->
<script src="__STATIC__/layout/js/plugins/sweetalert/sweetalert.min.js"></script>
<script src="__STATIC__/layout/js/plugins/layer/laydate/laydate.js"></script>
<script src="__STATIC__/layout/js/contabs_sub.js"></script>
<script>
    $(function () {
        $('body').on('click', 'input[type=text]', function () {
            this.select()
        })
    })
</script>
<script src="__STATIC__/layout/js/plugins/layer/layer.min.js"></script>
<script>
    //日期范围限制
    var start = {
        elem: '#start',
        format: 'YYYY/MM/DD',
        min: laydate.now(), //设定最小日期为当前日期
        max: '2099-06-16 23:59:59', //最大日期
        istime: true,
        istoday: false,
        choose: function (datas) {
            end.min = datas; //开始日选好后，重置结束日的最小日期
            end.start = datas //将结束日的初始值设定为开始日
        }
    };
    var end = {
        elem: '#end',
        format: 'YYYY/MM/DD',
        min: laydate.now(),
        max: '2099-06-16 23:59:59',
        istime: true,
        istoday: false,
        choose: function (datas) {
            start.max = datas; //结束日选好后，重置开始日的最大日期
        }
    };
    laydate(start);
    laydate(end);
    $(document).ready(function () {
        $('#reset').on('click', function () {
            $("#form1 input").each(function () {
                $(this).val('');
            });
            $("#form1 select").each(function () {
                $(this).val('');
            });
            $('#form1').submit()
            return false
        })
    })

</script>
</body>

</html>